From 6013cb67fabc2d5817f5c4d11bce7ef86b79e2e5 Mon Sep 17 00:00:00 2001 From: "robertlipe@gmail.com" Date: Sun, 10 Feb 2013 03:03:54 +0000 Subject: [PATCH] Correct mismatched ctor/xfree in tpo. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4299 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/tpo.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gpsbabel/tpo.cc b/gpsbabel/tpo.cc index adb30e546..36e87d8dd 100644 --- a/gpsbabel/tpo.cc +++ b/gpsbabel/tpo.cc @@ -640,7 +640,6 @@ void tpo_process_tracks(void) for (ii = 0; ii < track_count; ii++) { unsigned int line_type; unsigned int track_style; - unsigned int track_length; unsigned int name_length; char* track_name = NULL; unsigned int track_byte_count; @@ -1361,7 +1360,7 @@ void tpo_process_routes(void) if (tpo_wp_index[ii]->description) { xfree(tpo_wp_index[ii]->description); } - xfree(tpo_wp_index[ii]); + waypt_free(tpo_wp_index[ii]); } // Free the index array itself -- 2.30.2